/*----- Date Picker ----*/

.ui-datepicker {
	background-color: $white;
	border: 1px solid #e9ebfa;
	font-family: inherit;
	font-size: inherit;
	padding: 10px;
	margin: 1px 0 0;
	display: none;
	width: auto !important;
	z-index: 5 !important;
	box-shadow: 0px 16px 18px rgba(104, 113, 123, .2);
	border-radius: 7px;
	.ui-datepicker-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		position: relative;
		font-weight: 500;
		font-size: 12px;
		text-transform: uppercase;
		color: #473b52;
		padding: 0 0 5px;
		letter-spacing: 1px;
		border: 0;
		background-color: transparent;
		border-start-start-radius: 7px;
		border-start-end-radius: 7px;
		.ui-datepicker-next,
		.ui-datepicker-prev {
			text-indent: -99999px;
			color: #6c757d;
			inset-block-start: 1px;
		}
		.ui-datepicker-next::before,
		.ui-datepicker-prev::before {
			font-size: 16px;
			font-family: 'FontAwesome';
			position: absolute;
			inset-block-start: -4px;
			text-indent: 0;
		}
		.ui-datepicker-next {
			&:hover::before,
			&:focus::before {
				color: $dark;
			}
		}
		.ui-datepicker-prev {
			&:hover::before,
			&:focus::before {
				color: $dark;
			}
		}
		.ui-datepicker-next {
			order: 3;
			&:before {
				inset-inline-end: 5px;
				content: '\f105';
			}
		}
		.ui-datepicker-prev:before {
			inset-inline-start: 5px;
			content: '\f104';
		}
		.ui-datepicker-next-hover,
		.ui-datepicker-prev-hover {
			color: #495057;
			cursor: pointer;
			inset-block-start: 1px;
			border: 0;
			background-color: transparent;
		}
	}
	.ui-datepicker-calendar {
		margin: 0;
		background-color: transparent;
		border-end-end-radius: 3px;
		border-end-start-radius: 3px;
		th {
			text-transform: uppercase;
			font-size: 10px;
			font-weight: 500;
			letter-spacing: 1px;
			padding: 6px 10px;
			color: #a3a7b7;
		}
		td {
			border: 1px solid #eceef9;
			padding: 0;
			background-color: #eceef9;
			text-align: end;
			&:last-child {
				border-inline-end: 0;
			}
			&.ui-datepicker-other-month .ui-state-default {
				color: #ccc;
			}
			span {
				transition: all 0.2s ease-in-out;
				padding: 5px;
				background-color: $white;
				color: #473b52;
				padding: 6px 10px;
				display: block;
				font-weight: 400;
				font-size: 12px;
				border: 0;
				border-radius: 1px;
			}
			a {
				transition: all 0.2s ease-in-out;
				padding: 5px;
				background-color: $white;
				color: #473b52;
				padding: 6px 10px;
				display: block;
				font-weight: 400;
				font-size: 12px;
				border: 0;
				border-radius: 1px;
				&:hover {
					background-color: #f0f2f7;
					color: #473b52;
				}
			}
		}
		.ui-datepicker-today a {
			background-color: #f8f9fa;
			color: #473b52;
		}
	}
}

@media (max-width: 320px) {
	.ui-datepicker .ui-datepicker-calendar th {
		padding: 4px 0;
		letter-spacing: normal;
	}
}

.ui-datepicker-multi {
	.ui-datepicker-group {
		padding-inline-end: 15px;
		width: auto;
		float: $float-left;
		.ui-datepicker-title {
			margin: auto;
		}
		.ui-datepicker-prev::before {
			inset-inline-start: 10px;
		}
		.ui-datepicker-next::before {
			inset-inline-end: 10px;
		}
		table {
			margin: 0;
		}
	}
	.ui-datepicker-group-last {
		padding-inline-end: 0;
	}
}

.ui-datepicker-inline {
	max-width: 270px;
	border-radius: 12px;
}

@media (max-width: 576px){
	#ui-datepicker-div .ui-datepicker-group{
		float: none;
		padding-inline-end: 0;
		&.ui-datepicker-group-last{
			.ui-datepicker-header{
				margin-block-start: 10px;
			}
		}
	}
}
